<?php 
/**
 *  File Definition 
 *  - Theme Manager
 -------------------------------------------------------------------  
 *  Apprain : Content Management Framework <http://www.apprain.com/>
 *  Download link: http://www.apprain.com/download
 *  Docs link: http://www.apprain.com/docs
 -------------------------------------------------------------------
 *  License text http://www.opensource.org/licenses/mit-license.php 
 *  About MIT license <http://en.wikipedia.org/wiki/MIT_License/>
 */

    echo $this->get_tag('form',array('class'=>'app_form'));
        echo $this->callElement("default/tools/tool_bar",array("buttons"=>array(array("type"=>"back")) ,"title" => "Theme")); 
        echo $this->get_tag("div",array("class"=>"theme_pan"));
               echo $this->get_tag("div",array("class"=>"theme_default"));
                        echo $this->get_tag("h2","Current Theme");
                        echo $this->get_tag("div",App::load("Helper/Html")->imgDTag("{$themes_default['basepath']}/definition/{$themes_default['image']}","/200/fix"));
                        echo $this->get_tag("div");
                             echo "<br /><strong class=\"theme_created_by\">{$themes_default['title']}</strong> created by" . App::load("Helper/Html")->linkTag($themes_default['author_uri'],$themes_default['author']);
                             echo "<br />";
                            echo $themes_default['description'];
                        echo $this->get_tag("/div");
                        echo "<br class='clearboth' />";
               echo $this->get_tag("/div");
            echo $this->get_tag("table",array("border"=>"0","class"=>"theme_listing","align"=>"center","width"=>"90%"));
                echo $this->get_tag("tr");
                foreach( $themes as $key => $val )
                {
                    if( $key != 0 && $key %2 == 0 ) echo "</tr><tr>";
                    echo $this->get_tag("td",array("width"=>"33%"));
                    echo $this->get_tag("ul",array("class"=>"theme-inner-list"));
                        echo $this->get_tag("li",App::load("Helper/Html")->imgDTag("{$val['basepath']}/definition/{$val['image']}","/300/fix"));
                        echo $this->get_tag("li","<strong>{$val['title']}</strong> created by" . App::load("Helper/Html")->linkTag($val['author_uri'],$val['author']));
                        echo $this->get_tag("li", App::load("Helper/Html")->linkTag($this->baseurl("/developer/theme/" . base64_encode($val['name'])),"Install"));
                        echo $this->get_tag("li",$val['description']);
                    echo $this->get_tag("/ul");
                    echo $this->get_tag("/td");
                }
                echo $this->get_tag("/tr");
            echo $this->get_tag("/table");
        echo $this->get_tag("/div");
        echo $this->callElement("default/tools/tool_bar",array("buttons"=>array(array("type"=>"back")) ,"title" => NULL)); 
    echo $this->get_tag('/form');
?>